/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lemon&family=Ope n+Sans:wght@400;600&display=swap");
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(2, 100%, 61%);
  --first-color-alt: hsl(2, 89%, 53%);
  --title-color: hsl(233, 20%, 15%);
  --text-color: hsl(233, 4%, 35%);
  --body-color: hsl(2, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Open Sans", sans-serif;
  --second-font: "Lemon", cursive;
  --biggest-font-size: 2.25rem;
  --normal-font-size: 0.938rem;
  --space-cadet: hsl(224, 48%, 22%);
  --red-crayola: hsl(342, 100%, 50%);
  --black-coral: hsl(219, 13%, 44%);
  --blue-ryb: hsl(244, 86%, 59%);
  --cultured: hsl(0, 0%, 96%);
  --white: hsl(0, 0%, 100%);

  /* 格式 */
  --ff-be-vietnam-pro: "Be Vietnam Pro", sans-serif;

  --fs-1: 1.875rem;
  --fs-2: 1.5rem;
  --fs-3: 1.063rem;
  --fs-4: 0.875rem;
  --fs-5: 0.813rem;

  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* 过渡 */
  --transition: 0.25s ease;
  --transition-2: 0.5s ease;

  /* 间距 */
  --section-padding: 60px;

  /* 圆角 */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 3.5rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  height: 100vh;
  overflow: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.header.close,
.home__shape-bg.close,
.home__shape-big.close,
.home__shape-small.close {
  display: none;
}

/* animation */
.animation {
  font-family: "Poppins", sans-serif;
  z-index: 2000;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #80a492;
  transition: top 2s;
}
.animation.end {
  position: absolute;
  /* opacity: 0; */
  z-index: -1;
  opacity: 0;
  top: -100%;
}
.animation.over {
  display: none;
}

.a-container {
  z-index: 2000;
  width: 420px;
  padding: 50px 0px;
  border-radius: 8px;
  background: #d5ebe1;
  display: flex;
  row-gap: 30px;
  flex-direction: column;
  align-items: center;
}
.circular-progress {
  position: relative;
  height: 250px;
  width: 250px;
  background: conic-gradient(#99bcac 3.6deg, #ededed 0deg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circular-progress::before {
  content: "";
  position: absolute;
  height: 210px;
  width: 210px;
  border-radius: 50%;
  background: #d5ebe1;
}
.progress-value {
  position: relative;
  font-size: 50px;
  font-weight: 600;
  color: #99bcac;
}
.text {
  font-size: 30px;
  font-weight: 500;
  color: #5271ae;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.main {
  overflow: hidden; /* For the animations */
}

/*=============== HEADER & NAV ===============*/

.header {
  position: fixed;
  width: 100%;
  left: 0;
  top: 1rem;
  z-index: 100;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--second-font);
  color: var(--first-color);
}

.nav__logo span {
  color: var(--title-color);
}

.nav__toggle {
  display: inline-flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background: var(--body-color);
    left: 0;
    top: -100%;
    box-shadow: 0 8px 24px hsla(2, 100%, 35%, 0.2);
    width: 100%;
    padding: 3.5rem 0 3rem;
    border-radius: 0 0 2rem 2rem;
    transition: top 0.4s;
  }
}
.nav__list {
  display: flex;
  flex-direction: column;

  text-align: center;
  row-gap: 2rem;
}

.nav__link,
.nav__close {
  color: var(--title-color);
}

.nav__link {
  font-weight: 600;
  transition: color 0.4s;
  text-transform: uppercase;
}
.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  top: 0.9rem;
  right: 1.25rem;
  font-size: 2rem;
  cursor: pointer;

  position: absolute;
}
.nav__img {
  max-width: 200px;
  width: 40%;
  /* height: 1px; */
  position: absolute;
  top: -0.75rem;
  border-radius: 0 0 1rem 1rem;
}

/* Show menu */

.show-menu {
  top: 0;
}

/* Active link */

.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/

.home__container {
  position: relative;
  padding-top: 8rem;
  height: 100vh;
  display: grid;
  row-gap: 1rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-family: var(--second-font);
  color: var(--title-color);
  margin-bottom: 0.75rem;
}
.home__data {
  z-index: 999;
  /* height: 500px; */
}
.home__title span {
  display: block;
  color: var(--first-color);
}
.home__description,
.home__button {
  font-weight: 600;
}
.home__description {
  color: var(--title-color);
  font-family: "微软雅黑";
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 2;
}

.home__button {
  display: inline-block;
  background: var(--first-color);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 1.5rem 0.25rem;
  box-shadow: 0 8px 20px hsla(2, 100%, 45%, 0.28);
  transition: background 0.4s;
}
.home__button i {
  font-size: 12px;
  font-weight: 500;
}

.home__button:hover {
  background: var(--first-color-alt);
}

.home__images {
  position: relative;
  width: 325px;
  height: 378px;
  justify-self: center;
}

.home__images img {
  position: absolute;
}

.home__liquid {
  width: 340px;
  max-width: initial;
  left: -0.5rem;
}

.home__juice {
  width: 200px;
  transform: rotate(15deg);
  left: 1rem;
  right: 0;
  top: 1rem;
  margin: 0 auto;
  animation: float-juice 4s ease-in-out infinite;
}
.home__apple1 {
  width: 100px;
  transform: rotate(-25deg);
  top: 7rem;
  left: 0.65rem;
}
.home__apple2 {
  width: 90px;
  right: 1.5rem;
  bottom: 3.5rem;
}

.home__leaf:nth-child(1),
.home__leaf:nth-child(6) {
  width: 70px;
  transform: rotate(30deg);
}
.home__leaf:nth-child(2),
.home__leaf:nth-child(4),
.home__leaf:nth-child(5) {
  width: 80px;
}

/* Move sheets into position */
.home__leaf:nth-child(1) {
  top: -7rem;
  right: 3rem;
}
.home__leaf:nth-child(2) {
  transform: rotate(-30deg);
  top: 1.5rem;
  left: 1.25rem;
}
.home__leaf:nth-child(3) {
  width: 60px;
  transform: rotate(-15deg);
  top: 8rem;
  right: 5rem;
}
.home__leaf:nth-child(4) {
  bottom: 4rem;
  left: 3rem;
}
.home__leaf:nth-child(5) {
  transform: rotate(-30deg);
  bottom: 0;
  right: 5rem;
}
.home__leaf:nth-child(6) {
  bottom: -3rem;
  left: 0rem;
}

.home__shape-small,
.home__shape-big {
  background: hsl(2, 100%, 88%);
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.home__shape-small {
  width: 200px;
  height: 200px;
  top: -5rem;
  left: -5rem;
}
.home__shape-big {
  width: 250px;
  height: 250px;
  top: 17rem;
  right: -8rem;
}
.home__shape-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: soft-light;
}

/* Animation juice */
@keyframes float-juice {
  0% {
    transform: translateY(0) rotate(15deg);
  }
  50% {
    transform: translateY(-1.5rem) rotate(15deg);
  }
  100% {
    transform: translateY(0) rotate(15deg);
  }
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 330px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .home__images {
    width: 245px;
    height: 320px;
  }
  .home__liquid {
    width: 250px;
    left: 0;
  }
  .home__juice {
    width: 100px;
  }
  .home__apple1,
  .home__apple2 {
    width: 70px;
  }
}
/* For medium devices */
@media screen and (min-width: 767px) {
  .nav {
    height: calc(var(--header-height)+1.5rem);
  }

  .nav__toggle,
  .nav__close,
  .nav__img {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
  .home__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
    column-gap: 4rem;
  }
}
/* For large devices */
@media screen and (min-width: 1200px) {
  .home__images {
    width: 530px;
    height: 590px;
  }
  .home__liquid {
    width: 530px;
  }
  .home__juice {
    width: 220px;
    left: 0;
    top: 1.5rem;
  }
  .home__apple1 {
    width: 180px;
    top: 10rem;
    left: -1rem;
  }
  .home__apple2 {
    width: 185px;
    right: 0.5rem;
    bottom: 5.5rem;
  }
  .home__leaf:nth-child(1),
  .home__leaf:nth-child(6) {
    width: 100px;
  }
  .home__leaf:nth-child(2),
  .home__leaf:nth-child(4),
  .home__leaf:nth-child(5) {
    width: 90px;
  }
  .home__leaf:nth-child(1) {
    top: -1rem;
    right: 2rem;
  }
  .home__leaf:nth-child(2) {
    top: 2.5rem;
    left: 2.25rem;
  }
  .home__leaf:nth-child(3) {
    width: 70px;
    top: 12rem;
    right: 10rem;
  }
  .home__leaf:nth-child(4) {
    bottom: 8rem;
    left: 4.5rem;
  }
  .home__leaf:nth-child(5) {
    right: 10rem;
  }
  .home__leaf:nth-child(6) {
    bottom: 0rem;
    left: -6rem;
  }
  .home__shape-small {
    width: 400px;
    height: 400px;
    top: 0;
    left: -15rem;
  }
  .home__shape-big {
    width: 500px;
    height: 500px;
    top: 25rem;
    right: -8rem;
  }
}
@media screen and (min-width: 1048px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}
main img {
  border-radius: 12px;
}
